//
//  UIView+XHLKit.m
//  XHLKit
//
//  Created by qinyulun on 16/6/18.
//  Copyright © 2016年 leTian. All rights reserved.
//

#import "UIView+XHLKit.h"

@implementation UIView (XHLKit)

- (void)setLt_x:(CGFloat)lt_x
{
    CGRect frame = self.frame;
    frame.origin.x = lt_x;
    self.frame = frame;
}

- (void)setLt_y:(CGFloat)lt_y
{
    CGRect frame = self.frame;
    frame.origin.y = lt_y;
    self.frame = frame;
}

- (void)setLt_width:(CGFloat)lt_width
{
    CGRect frame = self.frame;
    frame.size.width = lt_width;
    self.frame = frame;
}

- (void)setLt_height:(CGFloat)lt_height
{
    CGRect frame = self.frame;
    frame.size.height = lt_height;
    self.frame = frame;
}

- (CGFloat)lt_x
{
    return self.frame.origin.x;
}

- (CGFloat)lt_y
{
    return self.frame.origin.y;
}

- (CGFloat)lt_width
{
    return self.frame.size.width;
}

- (CGFloat)lt_height
{
    return self.frame.size.height;
}

- (void)setLt_centerX:(CGFloat)lt_centerX
{
    CGPoint center = self.center;
    center.x = lt_centerX;
    self.center = center;
}

- (void)setLt_centerY:(CGFloat)lt_centerY
{
    CGPoint center = self.center;
    center.y = lt_centerY;
    self.center = center;
}

- (CGFloat)lt_centerX
{
    return self.center.x;
}

- (CGFloat)lt_centerY
{
    return self.center.y;
}


@end
